package com.anpy.bill;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "statistics", url = "http://192.168.2.104")
public interface StatisticsFeign {

    @RequestMapping(
            value = "/statistics/addStatistics",
            method = RequestMethod.GET,
            produces = MediaType.APPLICATION_JSON_VALUE
    )
    String addStatistics(@RequestParam("q") String q);

}
